Fixed endless-loop if a placeholder isn't recognized, Issue #7