Media conveyance control method and printer