Properly handle null values for derivation ops. Fixes #18