Update open_attachment prototype to reflect latest mapistore API changes