Prevent undefined index errors on MySQL 5.0.1 - .10.