fixed errors when run_tests.sh --makemessages

The change Ibf2036d5bbc4c478fcb912f6335104356e8f1317 causes
run_tests.sh --makemessages failure. Make the errors go way.

Closes-Bug: #1379054
Change-Id: I66b68099561bdd451321c7c31391f30827121e7c
Merge "fixed errors when run_tests.sh --makemessages"