Do not silently swallow exceptions.

"apis.user_class.agent_name" could throw a NoMethodError exception that
then would be silently ignored.