Just using the ID to identify the layer -- no longer trying to correlate with layer title.  You can have duplicate titles, so there's no assurance that it will work.