Fix a crash issue when empty strings are set to the BDF properties