MDL-41888 allow for a blank string as format to mean not to show stat

as in MDL-41929 which applies to older stable branches.