Close #31: Test and fix for nil-primitive-callback case