change "undefined variable" to a defined one in package controller

My IDE complained about "undefined variable $rows" so I changed it to $r.

See also bug report: http://www.concrete5.org/index.php?cID=504422