Solitons in One‐Dimensional Lattices with a Flat Band