Accept AppSettingsService but only take the result of getAppSettings()

Signed-off-by: Max Fierke <max@maxfierke.com>
Missing namespace on InvalidArgumentException

Signed-off-by: Max Fierke <max@maxfierke.com>