Refine the entry type check

Fixes KDE bug #424779
7 jobs for fix_kde_424779 in 4 minutes and 8 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #4004536
build

00:04:08

passed #4004541
build_android

00:02:09

passed #4004537
build_clang_libcpp

00:03:53

passed #4004540
build_clazy

00:02:31

passed #4004539
build_mingw64_fedora

00:02:37

passed #4004538
build_ubuntu_16_04

00:01:51

passed #4004535
clang_format

00:01:12