Fix gridline issue with missing axis label

The axis was searching for "line." as a selector, but ending in a . is
not a valid search method.