Fix noRestartOn option.

Looks like there was a typo in the IF statement that prevented noRestartOn from being set regardless of the value.