fix IndexOutOfBoundsException

happend if PocketCode folder wasn't empty but didn't contain
a valid structured project
Merge pull request #1106 from Catrobat/fixFaultyStartup

fix IndexOutOfBoundsException