Add check on injectProperties for null values passed in the properties struct.  Added test cases as well.