Sometimes some devices will not report back the h.264 bitrate and will also not return an error; check that the ref exists to prevent a crash