Parser: throw proper exception to fix issue of adding timeframe without
endtime (indexOutOfBound)