update selection expression for coping with empty chain name

selection expression is updated: chain name is now always quoted so the selection expression is correctly interpreted even when chain name is empty (" ").