prevent error when missing popupforms.js or plone.app.jquerytools.overla...

I found that running Plone 5.0 if I'd visit the theming control panel I'd get an error because of missing popupforms.js.  Don't know if that file isn't supposed to be part of Plone 5 but it seems a good idea to check for None anyway.