Fix to date query used when searching for events and to bill parsing (to check bills text exists before trying to format it).