OJS 3.6 Patch fails with malformed patch at line X

This thread references that same error message (Call to a member function getFileId() on null in lib\pkp\classes\file\SubmissionFileManager.inc.php:184), and suggests that there were missing supplementary files as cause: