Revert "Mark document.createElement as having no side effects."

This will likely break internal users because pull request #547 is not
in the released yet.

This reverts commit b148362d285ebd62520308e264061ee86efad6d5.