fix edge case in readable forms

i think this comes up when there's unrecognized data in a repeat
Merge pull request #3469 from dimagi/readable-forms-int-in-path

fix edge case in readable forms