fix for handling responses with no body