fix NPE in release tag detection (happens when there are no tags)
minor: code formatting