Changed custom header location to equal group of machine frontend/php.
Added sanity check on custom action frontend/php.