Proper null checking when checking if activity is debuggable