Added a guard for src attribute on scripts, which would not evaluate the inside script if null