Resolved issue with buggy date controls

It seems that without the if statement, the date controls default to 'between' when they are empty, even when explicitly asking for 'not between'
Signed-off-by: Sheik Hassan <solergiga@yahoo.com>