Update router.php

fix routing if method and class not exist!