Fix rendering for 500 page error

Fixes pybossa/pybossa#733