stmmac: fix NULL pointer dereference in capabilities fixup (v2)