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

http://tracker.phpbb.com/browse/PHPBB3-11775