Fix SQL request used by issues indexing

* strict comparison of issue updated_at
Add BaseDoc#getFieldAsDate() and getNullableFieldAsDate()