[fix #4] fix search after/before date if layer subset is not active