Added sanity check to +itemWithURL:mode:.