[CORE-1343] Fix relative path and catch UnknownChangelogFormatException

Fix the NPE.
Catch the exception UnknownChangelogFormatException after check relative path