When the instrument is deposited with an agent for presentment, the agent is entitled to the same time to give notice to his principal as if he were the holder giving notice of dishonor, and the principal is entitled to a further like period to give notice of dishonor.