A note on the Baer splitting problem over commutative rings