Experts advise loss-making companies to get lender consent before paying dividends to avoid misallocation. They must also think future plans, share price and global conditions