Fixed and made consistent a few calls of CRM_Core_Session::setStatus().