Overcoming a limitation of deterministic dense coding with a nonmaximally entangled initial state