MORTVIELLE: Add missing check on shouldQuit() (which fixes CID 1063228)