Update BestTimeToBuySellStockII.java

Add the error-checking conditions to take care of the cases where the price array is empty or null