http code 204 was causing an error 500

When trying to send back $this->response(null, 204) the code would
crash when handling the empty data.
Merge pull request #189 from caioiglesias/master

http code 204 was coming out as 500