rewrite: Only ref condition filter, if it is not NULL.
Merge pull request #269 from talien/f/rewrite-clone-condition-fix

rewrite: Only ref condition filter, if it is not NULL.