Call chain _super on beforeOpen in gallery plugin

If trying to use the gallery plugin beforeOpen is not working as gallery doesn't call the _super.