$.magnificPopup.close() shouldn't throw an exception if there's no instance