fix EmptyStackException in reportNonResource