[ticket/11775] Fix error when moving the last post to another topic

PHPBB3-11775