Fix cli: Don't blowup if response env is empty
Add post attachments validations