Avoid null-pointer in check-plugins