RMMV JavaScript Unofficial Bugfix Snippets

I found a bug where if you play a video the event doesn't wait for it to end to continue his instructions. This is due to the fact that the code checks if a video is playing after launching it to know if it ended, but the video takes up a few cicles to start so the code thinks it finished playing the cicle after it was launched.