JSHint was breaking on build

This commit adds a {} for an inline if statement that was breaking the
jshint part of the grunt build