Fix broken error page ignoring

We have to check for the data() class, or controller's class