OTA: Check for parameters before execution

Change-Id: Iaa342a9966ec9faaca24322f549bc0c1245778f5