Fix broken error page ignoring

We have to check for the data() class, or controller's class
Merge pull request #18 from Focus-Flow/bug/fix-broken-error-page-ignoring

Fix broken error page ignoring