I don't have a link to the official rule but think of this:
The reason why you are supposed to have six months remaining on a passport for entry, is that most visitors are given a six month visa stamp, making the visa valid during their entire potential stay and to know they can return home without any problems.
After your passport expires, you will continue to carry your current passport (the one that's about to expire) to show the IO the ILR sticker, meaning that they will admit you based on that sticker, not based on your new passport (although you need a new valid passport)
Hopefully that eases your concerns a bit.