Fixes #7322 - Fixed handling of empty body (just whitespaces)