Weird LTspice XVII behaviour
The difference in simulation results is due different DC solutions using different methods to find an operating point.

For an unconnected diode, it fails finding an operation point using Direct Newton Iteration.  

WARNING: Node NC_02 is floating.  

WARNING: Less than two connections to node NC_01.  This node is used by D1.
WARNING: Less than two connections to node NC_02.  This node is used by D1.
Direct Newton iteration failed to find .op point.  (Use ".option noopiter" to skip.)

When deleting this unconnected diode, it succeeds finding the DC operation point with Direct Newton Iteration.

For an unconnected resistor (with a given value), it also succeeds finding an operation point with Direct Newton Iteration.  

WARNING: Node NC_02 is floating.   

WARNING: Less than two connections to node NC_01.  This node is used by R1.
WARNING: Less than two connections to node NC_02.  This node is used by R1.
Direct Newton iteration for .op point succeeded.   

Conclusion
Having unconnected components in your circuit will not give direct errors or warnings in LTspice XVIII (only warnings in the Spice error logs), but may end up in complete different simulation results.