Fix check for hash task when code task found