Catch empty history exception