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>