Prevent $.pnotify js undefined errors