Avoid undefined method `[]' for nil:NilClass error on root

Without this patch the base route throws this error since there is no
payload to authenticate against.  This patch fixes the problem by
returning false if there is no payload.