only include cases owned by group in export

http://manage.dimagi.com/default.asp?144538

@czue since you were the last to touch this code: https://github.com/dimagi/commcare-hq/commit/e7526f1107ef7ec6ba65c3dbd04d95d4ea89d56b