Fixed NullPointerException when querying the highest user entry id when
the user has no entries yet