Get the SugarCRM framework Perftarget to accept the new constructor protocol.

Add invariant() calls to shut up diagnostics from hh_client; this seems to be new behavior.
(hh_client apparently doesn't (or no longer) propagates knowledge that $x !== null forward
to a callsite of a function that only takes a non-nullable argument)