Fixing notice when $_GET['code'] was not set
Fixing issue where exception class was not found