Fixed a JS error when the profile or data schema is blank