Prevent error on empty result
Fix NullPointerException on no connection