Guard PUT requests against null exceptions
Summary:
Two cases can occur:
- server-side issue where environment isn't configured
- client-side issue where "" is sent as payload
Fixes T1734.
Reviewers: dereckson
Reviewed By: dereckson
Maniphest Tasks: T1734
Differential Revision: https://devcentral.nasqueron.org/D2691