The pion in electromagnetic and weak neutral current nuclear response functions