Fix regression in --complete-objects causing fatal error and/or wrong warnings about object heights