MDL-37413 Use correct variable in chooserdialogue