Fixed .html_safe throws exception when source is nill (ubpb/catalog#336)