Fixed NullPointerException on nonexistent plugin directory.