Fix error in updateMatchComponents

Fix for an error being thrown in Routes.js - updateMatchComponents.