Ensure twitter uri id is numeric

An edge case where a link was twitter.com/name only caused a 500 error since
the id woudl be name and not actually something that could be passed back to
the api.

This patch puts in a very simple check to ensure the id is numeric.