Fix a bug in the asset manager's change handling where a layer would be overwritten by its dependent layers