Make sure that asMutable() is handling sub states correct by checking null.