update selection expression for coping with empty chain name

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