By: godotislate By: catch By: smustgrave By: berdir (cherry picked from commit eb7b8671)
Closes #3634443