HHVM Notice Fix

 Added a test to make sure $this->trace is not empty. Was causing issues in HHVM.