Fixed crash in DatabaseHandler when using getProfile, deleteProfile with invalid city