! Make sure $modSettings['custom_avatar_dir'] is defined during the upgrade (fixes #1327)

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>