Bug 967357 - Null check MediaResource principal to prevent assertion spam. r=roc