Update resize-header.js

Included conditional check on the image source which ensures the script does not trigger a resource all to "/none".