No telegraph, telephone, electrical or gas corporation can recover damages for the breaking, injury or destruction of any underwater cable or gas pipeline, unless the corporation has previously placed a marker on the bank of the waters under which the cable or pipeline is placed, indicating the place where the cable or pipeline lies.