Fix keyword extracting fail on empty tag.