Added new test for invoke on null

Signed-off-by: Rick Minerich <richard.minerich@gmail.com>
Fixed incorrect behavior where invoke on a null was throwing an exception instead of returning null

Signed-off-by: Rick Minerich <richard.minerich@gmail.com>