Check if Application has valid name in filter fn

Closes rhbz#1009189

Signed-off-by: Jakub Filak <jfilak@redhat.com>