Fixed possible exception when clicking on links and don't crash when exception thrown in preview domain