Minor Refactoring

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