Some fixes.

Some fixes :
 - Fix a bug when testing collision with invalid tiles
(http://forum.compilgames.net/viewtopic.php?f=20&p=45982)
 - Fix the "Add an object" button opening the object edition window.
(http://forum.compilgames.net/viewtopic.php?f=20&t=5542&p=45987)