Bug 4449: Mediawiki export does not produce table header row; also fix related PHP warnings

Signed-off-by: Isaac Bennetch <bennetch@gmail.com>
Merge pull request #1216 from ibennetch/4449

Bug 4449: Mediawiki export does not produce table header row; also fix related PHP warnings