main: check node id is not noneid

if we change it to NoneID it doesn't make sense here :-/