Fixed a key error when looking up object types for activities