Hello I am a solicitor with 20 years experience. I will try to answer this for you.
My initial reaction is that the police officer was not telling you the truth but if you give me a moment I will check. I think you need to contact the court to tell them you will be out of the country for the time that hearing is listed. You will need to show airline tickets etc probably and I would strongly suggest you instruct a solicitor to represent you. It is possible that you may get legal aid although far from certain.
I think the officer was being malicious If you have ILR you can travel and return to the UK.
OK. Glad to hear that I agree with your solicitor. I would be grateful if you would please rate my answer as I will not get paid answering you if you do not.