try to fix crash under OSX CCBUGS: 416289

Authored by mqualmann on Jan 15 2020, 9:47 PM.