The semantics around whether or not enabling the crash reporter depend
on the build type and the value of a couple of environment variables.
The logic for this used to live in a couple of places, this patch simply
consolidates it in mozglue, in order to use it later on.
Differential Revision: https://phabricator.services.mozilla.com/D305184