Make host nil safe.
Workaround polymer bug.
Workaround polymer bug.
Wrap string document in a div. Added some tests.
Removed duplicated tests.