COMP: Minor cleanup/optimization
BUG: Fix NPE when updating with no inputs connected

Thanks, Wendell!