I remembered it something like this (but see soarfourmore's reply for a correction): what if the command module pilot became incapacitated but was still alive?
The lunar module could still dock with the command module, but the astronauts would not be able to get into the command module because the the CM pilot could not open the hatch on that side.
So their only option would be to do a spacewalk over to the command module and open an external hatch to get in.
The would not know at that point whether the CM pilot had his spacesuit helmet on or not, so they wouldn't know until they opened the hatch whether they had just killed him.