fixed a bug where the error pages always assumed internal error parameters to be present