Don't crash when expr is null

In add group dialog use null, may be somewhere else.