buffer-monitor: fix critical error in check_for_change()
Without this change a critical error can be reproduced by:
- Create new file somewhere in the project by right clicking Project Tree
- Right click the newly created file and select "Move to trash"
Expected behavior
File is removed without errors
Actual behavior
Critical error in g_file_info_has_attribute()
as info
is NULL
.