Passing null files through

Fix for null files + unsing PLUGIN_NAME const like suggested in plugin guidelines