Handle nil arguments to do_static()

Fixes #202
Merge pull request #203 from binford2k/ticket/202/static_nil_warning

Handle nil arguments to do_static()