#2839: fixed bug in HeartbeatManager (more specific: corrected check if a task via its parenting job is still granted for a certain resource)