Handle incomingSettings
and profileObject
being null
#1504
Merged
incomingSettings
and profileObject
being null
#1504