Switch defined check to nil checks for new Rails 3 config variables for XSugar in commentary view