WIP: stbt.uri_to_remote -> factories: [bug] check for empty string not None

A more extensive solution to drothlis/#193.  Still needs tests.