BUG onBeforeHTTPError404 must be public to be invokable

Fixing an error where framework/core/Object.php#998 was falling over trying to call onBeforeHTTPError404() which was protected, causing the whole module to fail.