If an authorised person entered premises because of the consent of the occupier of the premises, the authorised person, and any person assisting the authorised person, must leave the premises if the consent ceases to have effect.