Prevent false positives in open file handle test

Noticed by Jenkins (BIOFORMATS-merge-develop) when using Java 1.5.