Added exception in get_extent().