Adds optional support of throwing NPE when calling method on null
instance