Fixed #5840 (False positive (inconclusive): Possible nullpointer dereference - use before for-loop over nested list)