Fixed crash on sqlite empty result