Fix xml export bugs LT-12105

Will be tested by AcceptenceTests as this is not C#
* Remove empty LexEntry elements (for minor entries not shown)
* Fix crash related to sense numbers

Change-Id: I1d3163815da6a2177120f1837c17af72038b0d9c