CRM-13933 - Fix chainSelect to work in other contexts