Specialization on a technologically stagnant sector need not be bad for growth