[PATCH 5.17 696/772] md: fix an incorrect NULL check in does_sb_need_changing