Test if reassigning .innerHTML results in null

Fixes #227.