Enhancing Video-Based Robot Failure Detection Using Task Knowledge