Move CRITTERCISM_APP_ID into consumer key constants.

Meaning that local builds/beta versions could use a different key.
Added check to ensure that data is not null before trying to use it.