chore(engine): Task.getKey() throw exception if not initialized

task.getFormKey() now throws an exception if the form key has not
been initialized.

related to #CAM-2568