Allow local files residing in file:/// to access socket server

Sorry previous submission failed tests this one won't (also takes care of when null is a string which I saw happening today)

This works because if a local file connects to a outside server (Even if it's localhost) it will send origin:null, previously that would fail but with this fix you can allow files that reside in file:/// to connect if options.origin = "*".