Workaround for unmaintained Globalize bug

Globalize has a bug where it tries to access a property on a NULL
object. This patch wraps the call in a try / catch and falls back
to the key.