Minor Refactoring

(Feature Request 1466)

Refactor PMA_Util::getLatestVersion() and PMA_sendErrorReport() 

Signed-off-by: Sachith Seneviratne sachith500@gmail.com