Handling Contingencies during Human-Robot Collaboration in Assembly