Prevent NullPointerException on empty responses