Handle apache_request_headers() non-array return values

`apache_request_headers()` can return `false` on failure: http://php.net/apache_request_headers

This PR handles this. (Diff best viewed with `?w=1`.)