Added in null and empty string checks

For compatibility, added in null and empty string checks to repo_owner, which should now default to username if not provided.