Fix cert selection height
On certain styles, especially windows styles, the height of of an item was different when asking with an invalid model index compared to a valid one. Use sizeHintForRow instead of asking the delegate.
Also account for top and bottom margins and spacing.