status/custom_view now more testable

If livestatus queries fail, return 500 error

This should make unit testing of the view easier.