Build null nodes if selections are empty.

Otherwise, this will propagate an exception.