Catch exception bug fix for core Laravel