Don't try to return the document in getCoveredNodes

This happens when the range (0,0) is passed.

Bug: 62657
Change-Id: I115174b880641bbacb4424e178497e17031cebd8