Re-introduced the shape null checks in the mouseup event handler of canvas.
Pasting of rectangles and circles work. Line still has issues being centred upon pasting.