Same checks when creating a new attachment

Signed-off-by: Suki <suki@missallsunday.com>
$id needs to be an integer.

Its not really needed, inner SMF stuff should take care of this already

Signed-off-by: Suki <suki@missallsunday.com>