added null checks to openvpn plugin