Fix passing nil local variable to render preview refs #17