Fix rednering BadRequest

Using temporary solution till
http://projects.theforeman.org/issues/3957 gets fixed.
Merge pull request #7 from iNecas/bad-request

Fix rednering BadRequest