Note that $xwiki.getDocument($request.somethingNotExisting) returns null in XWiki (since the velocity method uberspector fails to find a matching method as it doesn't know the signature to use - there are 3 getDocument method with one param)