Fixed error with undef status causing apache to fail