Stop crash on URL ending in #