Fixes dynamic declared fields in frontend action

On https://github.com/jonasdekeukelaere/forkmodule-cli/blob/fix-dynamic-declared-field/src/templates/frontend.actions.index.php#L43 slug is used outside the meta if.