BUG/MINOR: server-state: Ignore empty files

Users might want to pre-create an empty file for later dumping
server-states. This commit allows for that by emiting a notice in case
file is empty and a warning if file is not empty, but version is unknown

Fix partially: #2190

CF: Technically speaking, this patch can be backported to all stable
    versions. But it is better to do so to 2.8 only for now.
(cherry picked from commit 122a903b94d5db52923ebd2f49a960defddfd40a)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed