Fix for crash double clicking in sprite window
Detail: Making 1 new sprite and repeatedly double clicking on it in the sprite window would cause a fatal internal error. A bug introduced in Paint 2.24 was not checking whether the tag was a window before proceeding. Admin: Submission for Paint bounty.