CRM-15678 hookable invalid page handling