Add check in Gridlines constructor for QuantitativeScale inheritance.

Add check in Gridlines constructor for QuantitativeScale inheritance.

Close #539.
why are we using `!== null` and not `!= null`? are we deliberately leaving out `undefined` as a value that triggers the error? default is to use `!= null` in cases like this to treat `null` and `undefined` as equivalent