Return scaling error message only if "Ok" is clicked

Clicking "Cancel" shouldn't return a validation error since no action
was attempted.