DocumentUtils: Properly check the type of Document

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

Change-Id: I0a6fe2f1afe77f1990253621f537c396d8eead74
Signed-off-by: Brandon McAnsh <brandonm@matricom.net>