Correctly check for errors in strlower_m() returns.