Refactor #10156 Improvement $modx->getDocuments() parameter value
http://tracker.modx.com/issues/10156