Fix/board creation if invalid

OP ticket: https://www.openproject.org/issues/1738