switch from OnHandleRequest to OnParseDocument

With OnParseDocument the request has already been handled and the resource is available through $modx->resource. So no need to search for URIs, which seems to be not working in my multi-context setup. This might also be 1ms faster :D