fix IndexOutOfBoundsException

happend if PocketCode folder wasn't empty but didn't contain
a valid structured project

fix ProjectActivity Test

fix LoopBrick-Tests

[CAT-1095] FormulaEditorComputeDialog closes on inside click.

set correct xml codeStyle

Fix some TCs + improved timing issue:
* COndition instead of sleep