composer: validate layer before mapping it to buffer

Change-Id: I0afa6e3c3a7f1da3f420f7f500d87829cb12a936
CRs-Fixed: 3529133
1 file changed