TRUNK-4300 - OpenmrsCookieThemeResolver should never throw an exception, because that would break the uncaughtException page

(cherry picked from commit cf9f6e1f29d66fab9e80ffc7723f461fa3327b22)
Merge branch '1.9.x' of https://github.com/openmrs/openmrs-core into 1.9.x
TRUNK 4281: translate hard coded messages for cohorts