Fixes bug in eo_get_next_occurrence introduced in 7b0724e5b0014def9af3b9c928e05449a7d38788