Updating logic to successfully detect empty request body

Fixes https://www.pivotaltracker.com/story/show/81790304