Fix ugly error page randomly generated by errors.inc when the ['attributes'] is NULL