fix IndexOutOfBoundsException

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