If a short-term detention certificate is granted in respect of a patient who is in hospital under authority of an emergency detention certificate, the emergency detention certificate shall, on the granting of the short-term detention certificate, be revoked.