Remove invalid code and fixed changes to Illuminate\Foundation\Application

Signed-off-by: crynobone <crynobone@gmail.com>