Added sanity check on custom action frontend/php.