Parse number without crashing.