Return an unknown release type if getting failed

Returning null is a silly idea. With this commit, it returns ReleaseType.UNKNOWN.