Fixing the parameter parser (see #1168)

Rebased version of https://github.com/Sylius/Sylius/pull/1770
This is always true as `$parameterNames` is not defined.