Handle slash without anything before it

This avoids an NPE on input of "/".
Merge pull request #17 from ninjudd/handle_empty_slash

Handle slash without anything before it