YcmDiags now doesn't hang when no flags available

Fixes #46