[BUG #4201] setting 'defaultValue' to null if param is optional without default

- a first whack to make optional function parms visible in Apiviewer again