Added length test to avoid exception.

java.lang.StringIndexOutOfBoundsException: String index out of range
Merge pull request #476 from ypid/fix-OpeningHoursParser

OpeningHoursParser: Added length test to avoid exception and a bit clean up.