Nondestructive Detection Of Rydberg Atoms By Dispersive Shift Measurements On A Rectangular Waveguide Cavity