Fixes NULL pointer reference when uploading FW fails