allow fallback in heartbeat when the task id is lacking

relates to #148