Corrected the medline template tag to handle empty id lists.