do not crash on forged basic authorization

Should fix https://github.com/extend/cowboy/issues/486. Please, consider applying