FIX: check for expedition batch lines

check if expedition batch lines are available before foreach
Merge pull request #2161 from fappels/3.7

FIX: check for expedition batch lines
Fix: error reported by scrutinizer
Merge branch '3.7' of git@github.com:Dolibarr/dolibarr.git into 3.7
Info to help debug perf pb.
Fixed: sql syntax error
PHPCS
Fixed: Bad value for % increase for first year.
Fix: Several fixes into tasks and time spent management
Prepare 3.7 release
Update image for menu
Fixed: Var no declared
Maj icon
Merge remote-tracking branch 'origin/3.7' into develop

Conflicts:
	htdocs/core/class/html.form.class.php
	htdocs/core/lib/ecm.lib.php