fix: remove a null dereference coverity false positive; simplify
fix: remove a null dereference coverity false positive; simplify

StalderT/open62541,jpfr/open62541,open62541/open62541,jpfr/open62541,StalderT/open62541,open62541/open62541,open62541/open62541,JGrothoff/open62541,bostjanv/open62541,AGIsmail/open62541,JGrothoff/open62541,StalderT/open62541,open62541/open62541,bostjanv/open62541,jpfr/open62541,StalderT/open62541,JGrothoff/open62541,AGIsmail/open62541,JGrothoff/open62541,jpfr/open62541