Measuring black hole spin by the continuum-fitting method: effect of deviations from the Novikov-Thorne disc model