fix panic in mflag

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

fix panic in mflag