Renormalization group study of NMR in a gapped Anderson model