Add a return line in case no file is retruned from listFiles()

Closes #3

Under certain conditions (platform, Java version dependent), `listFiles()` can return `null` causing a NullPointerException.  This PR attempts to fix this error by returning before the for loop is no file is returned.