prevent empty responses from crashing the app