Fix broken error page ignoring

We have to check for the data() class, or controller's class
Merge branch 'bug/fix-broken-error-page-ignoring' into ignore-userdefinedform

Conflicts:
	code/DynamicCacheControllerExtension.php
Fix class checking