Fixed to ignore output structures of NULL.