Walter Koenig had a difficult time getting roles both before and after Star Trek: The Original Series