Fix URL templating to not freak out over nulls