/subs/: Refactor to create a "get_safe_hash" method.
/subs/: Refactor to create a "get_safe_hash" method.

This returns a string always, checks if the “location” variable exists
inside of window, and will trim the first character (“#”) on hashes.

rht/zulip,kou/zulip,timabbott/zulip,andersk/zulip,tommyip/zulip,zulip/zulip,hackerkid/zulip,punchagan/zulip,brainwane/zulip,punchagan/zulip,dhcrzf/zulip,jackrzhang/zulip,dhcrzf/zulip,punchagan/zulip,synicalsyntax/zulip,rishig/zulip,synicalsyntax/zulip,mahim97/zulip,zulip/zulip,eeshangarg/zulip,rishig/zulip,synicalsyntax/zulip,showell/zulip,mahim97/zulip,synicalsyntax/zulip,showell/zulip,rishig/zulip,timabbott/zulip,kou/zulip,brainwane/zulip,andersk/zulip,hackerkid/zulip,jackrzhang/zulip,andersk/zulip,zulip/zulip,brainwane/zulip,dhcrzf/zulip,zulip/zulip,timabbott/zulip,showell/zulip,shubhamdhama/zulip,tommyip/zulip,rht/zulip,jackrzhang/zulip,eeshangarg/zulip,Galexrt/zulip,zulip/zulip,synicalsyntax/zulip,hackerkid/zulip,mahim97/zulip,brockwhittaker/zulip,jackrzhang/zulip,rht/zulip,showell/zulip,jackrzhang/zulip,Galexrt/zulip,brockwhittaker/zulip,eeshangarg/zulip,Galexrt/zulip,rht/zulip,rishig/zulip,showell/zulip,brockwhittaker/zulip,shubhamdhama/zulip,dhcrzf/zulip,punchagan/zulip,showell/zulip,tommyip/zulip,Galexrt/zulip,rht/zulip,rishig/zulip,brockwhittaker/zulip,zulip/zulip,hackerkid/zulip,zulip/zulip,eeshangarg/zulip,brockwhittaker/zulip,Galexrt/zulip,punchagan/zulip,tommyip/zulip,dhcrzf/zulip,andersk/zulip,kou/zulip,hackerkid/zulip,eeshangarg/zulip,andersk/zulip,kou/zulip,Galexrt/zulip,tommyip/zulip,rht/zulip,shubhamdhama/zulip,tommyip/zulip,hackerkid/zulip,jackrzhang/zulip,timabbott/zulip,eeshangarg/zulip,kou/zulip,brockwhittaker/zulip,shubhamdhama/zulip,shubhamdhama/zulip,mahim97/zulip,showell/zulip,timabbott/zulip,rishig/zulip,dhcrzf/zulip,dhcrzf/zulip,brainwane/zulip,mahim97/zulip,shubhamdhama/zulip,brainwane/zulip,eeshangarg/zulip,jackrzhang/zulip,synicalsyntax/zulip,brainwane/zulip,andersk/zulip,punchagan/zulip,rht/zulip,synicalsyntax/zulip,kou/zulip,tommyip/zulip,timabbott/zulip,hackerkid/zulip,timabbott/zulip,rishig/zulip,Galexrt/zulip,brainwane/zulip,andersk/zulip,kou/zulip,shubhamdhama/zulip,mahim97/zulip,punchagan/zulip