Fixing the parameter parser (see #1168)

Rebased version of https://github.com/Sylius/Sylius/pull/1770