DocumentUtils: Properly check the type of Document

* Check the correct portion of the uri to determine its type

Signed-off-by: Brandon McAnsh <brandonm@matricom.net>
Merge "DocumentUtils: Properly check the type of Document" into kitkat