Fixed a bug in AppCreatorContextManager.

This was introduced in the last commit.