Revert "Fix for issue #1205 toElementEdge"

This reverts commit 609e6a59865c4430c5d2a7f13451bde31e3fb6ec.