Use PhutilInvalidStateException
Summary: Use PhutilInvalidStateException where appropriate.
Test Plan: N/A
Reviewers: epriestley, Blessed Reviewers
Reviewed By: epriestley, Blessed Reviewers
Subscribers: epriestley, Korvin
Differential Revision: https://secure.phabricator.com/D13333