Well, you test b == null after using it, which must be wrong. Also are you missing  the initial if?
After edits
You don't put "WELL" inside the bundle, so the string "bun is null" is logged. The b must be non-null or you would have a crash at your hands. Try changing your if sentences to this and report what you get:
if (b == null) {
    Log.v("BUNDLE", "bun is null");
} else if (!b.containsKey("WELL")) {
    Log.v("BUNDLE", "bun doesn't contain WELL");
else {
    Log.v("BUNDLE", "Got bun well");
}