AbstractSingletonService: fix bug in initInstances

The last commit introduced a logic error: it missed one usage of the
"instances" variable.