Fixed hardcoded return type
Different criteria for OutputEvent::isNull() so as not to interfere with null IoPins