Fixed null pointer exception for paste menu items...

and button and clear contents menu item when no cell is selected
correctly.