Fixed missing change in recent refactoring, causing plater crash. #1298