document.execCommand compatibility fixes

Opera throws a WRONG_ARGUMENT_ERR if you don't
pass in null for the argument value.