Guard about potentially missing data from GitHub

Addresses:
https://app.getsentry.com/app20126465herokucom/production/group/18572350/
Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.