API Extend ErrorPage detection to work on subclasses of ErrorPage