LEDGE-258: prevent NPE in case of unreadable directories on classpath