GUI-689: Quick fix to unblock testing on environments with Beaker 1.5.4

Cache.namespace_name wasn't added to Beaker until 1.6, so add a check for the attribute to be safe.  Still need a workaround though, either a patched version of Beaker 1.5.4 or pin the version to at least 1.6.