Correcting the assignment of merged resources while merging multiple menu
objects.

Change-Id: I039e76a265e39c1709f58e5b0b06c70d6c333dbf
Merge "Correcting the assignment of merged resources while merging multiple menu objects."