Adding negative slot index check in ComposerResources

Bug: N/A
Test: build, boot
Change-Id: I8ab18ed8f7c322ee995abc534309b51e796276fe
1 file changed