have case details ui fail gracefully when forms have no xml attachments

This came up while I was testing bihar reports locally, as my copy_group_data mgmt cmd doesn't copy attachments.

Anyway, thought it might come in handy.