prevent panic when empty flag

Docker-DCO-1.1-Signed-off-by: Victor Vieux <vieux@docker.com> (github: vieux)
Merge pull request #6489 from vieux/fix_mflags_panic

prevent panic when empty flag