Fix a crash occurring when gdispc->groot is null.

This addresses issue #1559.