medium: levels: Explicitly check end_game() is not False (bnc#868533)