Replace the empty defaults caused by a null default with nil
Merge pull request #6432 from TWaalen/upstream/luadocs-null-placeholder

Fixes #6078