Fixes optional argument check
Merge pull request #6404 from mwerezak/overpressure

Fixes optional argument check