don't 500 when case identifier is not a string
coerce identifier to string
only search for case if identifier is not None
Merge pull request #3182 from dimagi/bulk-upload-error

don't 500 when case identifier is not a string