be careful about a null url for data URLs