Update retina-query.js

Added error detection, if the image does not exist the non-retina image will not be changed