Fix extend_query_by_date function if it raises an error
Merge pull request #119 from 4teamwork/es-fix-extend-query

Fix extend_query_by_date function if it raises an error