IDE: Fixed crash due to fpc optimizer issue 0020827 / Lazarus issue 0025588

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@43921 4005530d-fff6-0310-9dd1-cebe43e6787f
TAChart: Fixed crash due to fpc optimizer issue 0020827 / Lazarus issue 0025681

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