Check if the $response_format is a valid viewtype

Fixes a problem when the $response_format is not a valid viewtype, using xml as default.
If uses for example jsonp, show a blank page.

@lucianomlima