Fixed an undefined index error when updating status from non-existant statuses (may happen due to stale data after changed configuration)