Fix some NPE's in the Control Example.