Guard the cost to be a None value...

... when a move is not linked to a purchase order line.

When this situation happens. the 'cost' is None and the web interface cannot handle this value, provoking a JS error. Thus, prefer to fallback on the standard way to get the cost: based on the current standard price of the product.