apply: avoid deleting apex node when empty as it will be replaced
The changeset application code (apply.c) wrongly deleted the apex node if the SOA RR was the only in it when replacing SOA with newer version. This condition seems untested in functional tests.