The corporation procuring the appointment of any railroad police shall be solely responsible for the compensation for the officer's services and shall be liable civilly for any unlawful act of the officer resulting in damage to any person or corporation.