adds needed check before cat move

It's possible that the current_category is not able to be set, which
kills the process.  Note a bailout path may be warranted here
Merge pull request #3 from jeremyBass/master

adds needed check before cat move