Localization and stability in a damage model for rubberlike materials