Every person, and every agent or officer of any corporation carrying on business as an innkeeper, or as a common carrier of passengers, who refuses, without just cause or excuse, to receive and entertain any guest, or to receive and carry any passenger, is guilty of a misdemeanor. However, an innkeeper who has proceeded as authorized by Section 1865 of the Civil Code shall be rebuttably presumed to have acted with just cause or excuse for purposes of this section.