fix a segfault error when iput object

git-svn-id: svn://irodssvn.ucsd.edu/trunk@5654 ea137bd6-aa86-47b6-b90d-b101d9f19a90
Another fix

git-svn-id: svn://irodssvn.ucsd.edu/trunk@5655 ea137bd6-aa86-47b6-b90d-b101d9f19a90