Set the ma:duration attribute on the video asset model to have a default value of 0, to prevent an error when it tries to cast NoneType as int.
Test showing how using ma:duration=None throws an error