Make sure IcingaApplication::GetVars returns a default value

refs #8074
Remove unused code

refs #8074