Fix rendering for 500 page error

Fixes pybossa/pybossa#733
Merge pull request #17 from PyBossa/issue-733-500-page-rendering

Fix rendering for 500 page error