CPScanner: small fix...

URL's .getFile() cannot return null. In addition, test .isEmpty() instead of
.length() == 0.