Added check for the task class when getting the ID for the abstract task representer