[Ide] Fix crash in dock system

Fixes bug #23818 - NullReferenceException when we try to place a dockframe