Should fix #14. CreateEndpoint path is checked for undefined instead of
!path.