fix Issue 7152 - Can't assign null to default argument

This had not implemented as a part of issue 7019.
Merge pull request #1448 from 9rnsr/fix7152

Issue 7152 - Can't assign null to default argument