Where a license has been granted for a consideration, and the licensee, without any fault of his own, is evicted by the grantor before he has fully enjoyed, under the license, the right for which he contracted, he is entitled to recover compensation from the grantor.