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