[NTG-context] removing layers in empty pages