Handle invalid base without returning null