XD-1976 Unable to deploy job in UI

* Add test case for `getModuleNameFromJobDefinition` when retrieving the module name for definitions without parameters
* Fix `getModuleNameFromJobDefinition`
* Disable the `Deploy` button as long as no module name has been retrieved