fix for missing skill info

fix a possible error condition in getTier, which caused the script to abort.