Fixed error 'Undefined variable: releases' when deleting a release.