Fix issue #2219

Signed-off-by: Yue Lin Ho <b8732003@student.nsysu.edu.tw>
I want to modify this line to ```if (!pRev->GetBody().IsEmpty())```, since the TrimRight() is called at line 1561.
No need to call it again.