initialize() won't be invoked if event handler calls getShared() to get already initialized object

See #787