Fix #25245 - Line hooks not saved.

Fix #25245 - Line hooks not saved.

If begin or end hooks are turned on, but their size and type properties are not changed, the hooks themselves are not saved.

See http://musescore.org/en/node/25245 for details.