[TIMOB-11869] Fixed bug with option values being defaulted too early. Moved invalid option detection to after command validation. Updated context unit test.