cp#1000016 DOCX/RTF import: fix RemoveLastParagraph() on Windows

Change-Id: I3f9d69ddbb2144c60a724e4242128b65ae167455