MDL-39306 fix course search regression

Oracle handling of NULLs is totally wrong and crazy!