Fixed issue where if type=='html' and no content the app would bork