if there is an internal server error, reference id is not present, which was causing error route to fail. fixed