fix NullPointerException when files has no tags