Bug 1065511 - guard against falsey unfilteredStack. r=etienne

Master patch with the same change wont apply cleanly. Guard against null unfilteredStack in exitToApp