fixed some issues mentioned in the review

- added some forgotten waitsForDone() calls
- added a missing test case for dynamic-project-6
- check document and if it doesn't have a masterEditor before adding the document to the workspace
- removed the waits() call after invalidating the FileIndexManager
- re-enabled the message dialog if no suitable document was found for Live Preview