fixed bug in checking for empty inputs that was introduced in the previous commit
fixed bug in checking for empty inputs that was introduced in the previous commit

EducationalTestingService/discourse-parsing,EducationalTestingService/discourse-parsing