Fixed crash when adding ReferenceSample without RefernceDefinition definied in Worksheet