Fix storing empty URLs