add method to check if a ReleaseId is referred to a snapshot
(cherry picked from commit 5e184acedc7798f572cd5bcddbc900a73a6b1294)