Return null in Element#getDocument

Because throwing an exception is overkill.

Change-Id: I4b865c1397a76f732c4416b5348e58d46a80042b
Merge "Return null in Element#getDocument"