That is flat out wrong. From the part of the law you quoted:
"a mental health professional can decide to issue a temporary detention order"
Notice the word TEMPORARY. If you read further in the link you posted it says:
"H. The duration of temporary detention shall be sufficient to allow for completion of the examination required [...] but shall not exceed 48 hours prior to a hearing."
How is that a serious problem?