Fix IndexError when passing an empty string as content.