OPAL-1710: Removed method hasTask, getting directly the currentTask and ...

...check if null