wayland/surface: Only discard feedback on new buffer
The assumption made in the comments only applies if a new buffer was attached, so move the code accordingly. Surface commits may be done e.g. for subsurface movements or frame callback requests, among a growing list of other reasons.
cc @YaLTeR