Fixed #21445 -- Clean up misuse of null in quickElement.

Thanks to trac user parsch for the report.