change export code to group no app id and null app id together
Merge pull request #2249 from dimagi/null-app-id

change export code to group no app id and null app id together