[Editor] Fix tests in AOSP Browser

Fix test in AOSP browser were execCommand('inserthtml') was not working - Didn't need the functionality in the test. 

Fix issue where anchor and focus nodes are null in selector - set to resolved nodes if the nodes are falsy.

Issue #1268