Fix #1374 by adding a listpredict piece to the formspec

The format is listpredict[take_predict,put_predict]. -1 means the entire stack is allowed.

If listpredict is not there, then the current behavior (no prediction except for inter-player inventory) is used.
Use `if (!m_gamedef)` or `if (m_gamedef == NULL)`