Fix bad MySQL results crashing it