Update favico.js

fix empty url issue (for localhost), and when using 'data:'