Check parameter values for null before injecting them into the permission. Fixes #5.