Fix template tag not support None values (fixes #4)