fix(inject): ignore undefined and null value

Closes #11