MDL-21432 backup - better handling of null sql params