Added safety to ContainerItemWrapper.

Signed-off-by: King Lemming <kinglemming@gmail.com>