Fixed null reference exception.  Rules now saves again.