Raise the error if it occurs before datum[:stack] gets set

This happens say when assert_valid_keys_for_argument! fails.