IDE-281 Debugger crashes after Layout finishes

Fixes IDE-281

Signed-off-by: Gordon Smith <gordon.smith@lexisnexis.com>
Merge pull request #147 from GordonSmith/IDE-281

IDE-281 Debugger crashes after Layout finishes

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>