LCL: getmousecapture: check if handleallocated

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@42305 4005530d-fff6-0310-9dd1-cebe43e6787f
IDE: open loaded pkg dlg: debug

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@42307 4005530d-fff6-0310-9dd1-cebe43e6787f