Handle valid symbols that are NULL correctly. (#385388, Felix Kater)