ESDEV-1510 #4958 bugfix The check if date options exists was incorrect.