Fix possible startup crash

Authored by mardelle on May 14 2020, 8:42 PM.