This is mostly a documentation/convention issues, as there is nothing in uxQueueGetQueueLength() itself that will trigger an assert, and it should be ISR safe. (after all, it is just fetching a constant member of the structure).
TRACING it might not be, which could be your issue, if the trace macros use critical sections.