Fix warning message for undefined entry

Just a small check to get rid of an annoying warning message