[Plugin EP] Check for nullptr before dereferencing (#27644)
It seems some outputs on the spanned list may be nullptrs. By checking
for nullptr and skipping them if found, it does not seem to disturb
proper execution on models.
That check was not required for legacy EP using the Host API.