Merge "Adding negative slot index check in ComposerResources"