Fixing crash when bad custom address is given