Add error handling for certificate file copying

Closes https://github.com/blackberry/webworks-gui/issues/24