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

java.lang.StringIndexOutOfBoundsException: String index out of range