Resolves: fdo#78404 #i123468# Added SdrEndTextEdit before replacing...

EmptyPresObj, also secured ReplaceObjectAtView to check for active TextEdit,
assert this and make an emergency correction

(cherry picked from commit 623cd778689bd0851652b2db00b24c308dfb657a)

Conflicts:
	svx/source/svdraw/svdedtv.cxx

(cherry picked from commit 3b729ab35b5064dcd21f125dfd0aa7d7e709fd9f)

Change-Id: I0e9ae1b1cd84e04c37c4de38aca7752804782384
Reviewed-on: https://gerrit.libreoffice.org/9482
Tested-by: David Tardon <dtardon@redhat.com>
Reviewed-by: David Tardon <dtardon@redhat.com>