Fix the KeyError on formatter

When a custom (extra) formatter variable is specified but not provided by some logger, a KeyError is raised. Doing a dict.get(item) instead of dict[item] will prevent this from happening.