Display a message when a list view is empty

fixes #6469
Display note when host and service is not found

When the show/host and show/service views do not find a host or service,
don't show a non-working view, but display a error message

fixes #6469
Fix violations of coding guidelines