check deployment config before sending a deployment task

Prevent FI to send a deployment task to agents having deployment module disabled, because they will run it anyway.
If deployment is disabled, then cancel the task.