Fixed handling of `bar(.., bottom=None, log=True)`

re-added lines to make sure that `bottom` and `left` are not None in the case of `log=True`.  If this is not done, there will be type exceptions.

Issue #1882