Correct file handler should be deleted

Previously, Jim_DeleteFileHandler() would indiscriminately
delete the first matching file handler in the list.
Instead, it should delete the file handler matching the event mask.

Signed-off-by: Steve Bennett <steveb@workware.net.au>