Make CompositeEditCommand::moveParagraph() to abort when destination becomes invisible

This patch makes |CompositeEditCommand::moveParagraph()| to abort when
destination of paragraph becomes invisible.

This patch also changes |assert_selection()| test utility to handle no BODY
element document to support attached test.

BUG=620873
TEST=LayoutTests/editing/execCommand/apply_style/justify_full_without_body_crash.html

Review-Url: https://codereview.chromium.org/2131113002
Cr-Commit-Position: refs/heads/master@{#406738}
2 files changed