When the landlord or keeper of any hotel or public inn provides the doors of the rooms or sleeping apartments in the hotel or public inn with locks and keys in good order and repair and the room or sleeping apartment is turned over to the possession of any guest or patron together with the key to the door thereof, the landlord or keeper of the hotel or public inn shall not be liable to any guest or patron thereof occupying the room or apartment for loss of any article of personal property left within the room or apartment by the guest or patron while in possession thereof, unless the door in the room or apartment was left locked when unoccupied, and after being locked the key thereto was delivered to the person in charge of the office of the hotel or public inn. If any article of personal property is taken by an employee or servant of the landlord or keeper of the hotel or public inn, then the provisions of this section shall not prevent the guest or patron from recovering the value of the article, not to exceed the sum of two hundred dollars for all the articles.