[mysql] fix bug if callback is null