Merge pull request #252 from QUTlib/20140725-handle-undefs

handle undef objects