Bugfix: nil checking of rewritevalue #4