Bug fix 3910. Updated Export plugin to support zero rows

Updated Export plugin for php to support empty tables. Please Review it.

Thanks