Uncaught TypeError: Cannot call method 'indexOf' of null fixed

Fail to include src or data-src attribute with img element could cause js error when running "null.indexOf"