Fix saving bundle metadata to configuration
Before this commit, not every bundle metadata would be saved to configuration for later. This commit fixes this behavior.