Added checks for null in SelectTool mouse-up event

I caused a crash by dragging and dropping an image into Pinta.  I wasn't able to reproduce the problem, but I believe this pull request will prevent it in future.