Avoid an NPE from missing isValid() function, needs revisit
Check and ensure all scripts are loaded from plugins