Add assert for profile obj keys and remove redundant assert.