Minor fix: local variables map not being created if selection was null.