Bug fix

check for empty strings before parsing time values