handle empty frame by returning dummy gates in .gating_wrapper function #77