Fixed error when opening deck with no slides, and added response.flash message to inform user.