fix api for forms w/o 'openrosa_headers' attr

I think this only fixes it for tests, where full processing may not have
occurred
Merge pull request #3122 from dimagi/fix-api-build-error

fix api for forms w/o 'openrosa_headers' attr