Add logging for "Invalid message parameter"

Records a full stacktrace for this warning

Bug: 58676
Change-Id: I234b525b04168eee6085d44fbf0e0d8ac3d0af91
(cherry picked from commit aa8873e2b951a8ff8c4f30ba114fda76d090846c)