ticket:8451: Ensure that the error conditions are handled properly.

git-svn-id: http://source.icu-project.org/repos/icu/icu/trunk@33088 251d0590-4201-4cf1-90de-194747b24ca1
ticket:9802: Fix failures in running cintltst and intltest without data

git-svn-id: http://source.icu-project.org/repos/icu/icu/trunk@33089 251d0590-4201-4cf1-90de-194747b24ca1