Hi Konstatantin,
Thank you for contacting Syncfusion support.
We have checked the reported behavior of Ribbon based on your updated Xaml code and we were unable to reproduce the NullReference exception from our side. We have prepared a simple sample for your reference and it can be downloaded from the below location.
Can you check with the above sample for the scenario we have checked and let us know if we have misunderstood your query. Also, as you mentioned that the commented out the resource file can resolve your exception, we request you to apply the resource dictionary in app.Xaml and update whether the issue can be reproduced. If still the issue persists, can you modify the sample which replicates the issue? That will helps us to analyze and provide the solution at earliest.
Regards,
Keerthana J