Forward-port 2013.2-762-g0503775 to ColorOverlayComponent

Done for InventoryOverlay in 0503775bbe37d25d17bd4592122f5722c2c708dc.
See #2145.