Fix bug preventing use of --empty option with validate command
Fixes a bug that resulted in an error when the --empty option was used with the validate command.
Fixes a bug that resulted in an error when the --empty option was used with the validate command.