union-1016578: Protect calls to createUrl in case they throw

Signed-off-by: Joe Walker <jwalker@mozilla.com>