Check that other has len and iteritems before using them.