Fixed a problem where a state change would throw an exception if there are no callbacks registered on a class.