fix argument check in QtPatchOperation

Change-Id: I9220fec90df5b7dad2e49db90209e64bbc4fd8b2
Reviewed-by: Niels Weber <niels.weber@digia.com>