QUEEN: Fix bug #3612408 - "QUEEN: Can't quit from ScummVM while ending cutscene"

We now check if the engine should quit in the loop of the end credits animation