updated ca_registry error checking
updated ca_registry error checking

jcu-eresearch/TDH-rich-data-capture,jcu-eresearch/TDH-rich-data-capture,jcu-eresearch/TDH-rich-data-capture,jcu-eresearch/TDH-rich-data-capture