Added null checks for ReleaseId.