How to address gaps between underlayment and drywall before waterproofing?
Leave the gap and cover it with trim. The gap is there to prevent the drywall from wicking moisture up from the floor and molding.