Fixes crash when setting top_value = nil

Error: 

```
subviews.rb:196:in `create_view:': undefined method `<' for nil:NilClass (NoMethodError)
```