BISERVER-10181: Fixed problem with onSelect code for tree items.