MDL-25335 prevent errors when invalid format specified in resource text page