ok() is an assertion; it doesn't make sense to return its return value.
This should be:
ok(true);
return;
(or even just do nothing here and have an ok(true) after the catch block - in fact, it may not even be necessary to do anything, I think the test passes if there are no failed assertions.)