Fix bug 952608 - Prevent statusCode from being undefined