Detecting bad/empty user-agents

Signed-off-by: Edwin Luijten <edwin.luijten@live.nl>