Avoid warning + potential information disclosure

Thanks, faisalahmed @ HackerOne!